package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("examine")
public class Examine {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long objectId;
    /*
     * type = 0 为动态本身
     * type = 1 为古诗评论,type = 2为动态评论
     * */
    private Integer type;
    private String content;
    private String img;
    private Boolean flag;
    private Boolean hasExamine;
    private Date createTime;

    public Examine(Long id, Boolean flag, Boolean hasExamine) {
        this.id = id;
        this.flag = flag;
        this.hasExamine = hasExamine;
    }
}
